package check

import (
	"operator/controllers/check"

	"github.com/gin-gonic/gin"
)

// 实现check接口
func checkapi(checkGroup *gin.RouterGroup) {
	checkGroup.POST("/health", check.CheckBackup)
}

// 实现check接口
func listbackupapi(listbackupGroup *gin.RouterGroup) {
	listbackupGroup.GET("/list", check.ListBackup)
}

// 注册路由的方法
func RegisterSubRouter(g *gin.RouterGroup) {
	checkGroup := g.Group("/check")
	checkapi(checkGroup)
	listbackupapi(checkGroup)
}
